{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}pg-feed wg-feed{{/:widget_class}}

{{:widget_body}}
	{{!connect 'theme/view/feed.css'}}
	{{!connect 'theme/widget/feed.css'}}
	{{!connect 'theme/doctype/doc.css'}}
		{{?widget.items}}
			<div class="list-">
				{{!for widget.items do=@:ld_item}}
			</div>
		{{?:}}
			<div class="typography"><p>Записей пока нет.</p></div>
		{{/?}}
{{/:widget_body}}

{{:ld_item}}
<div class="item-">
	<h4 class="header-"><a href="{{/}}{{community.url}}/{{*post.oid}}" class="doctype-doc-link">{{*post.title}}</a></h4>
	<div class="meta-">
		<a href="{{/}}{{community.url}}/members/{{*poster.oid}}"><img src="{{?!*poster.avatar}}{{!static type='images' 'avatar-22x22.png'}}{{?:}}{{/}}{{*poster.avatar | link_to 'imagestorage' 'sm2'}}{{/?}}" alt="" class="avatar-" /></a>
		<a href="{{/}}{{community.url}}/members/{{*poster.oid}}" class="user- service-user">{{*poster.fullname}}</a>
	{{*post.ctime|date "%d %M %Y, в %H:%i"}}
	</div>	
	<div class="content- typography">
		<p>{{*post.announce | safe}}</p>
	</div>

	{{?*post.commentscount}}
		<ul class="comments-">
			<li>Уже есть</li>
			<li class="link-"><a href="{{/}}{{community.url}}/{{*post.oid}}?showcomments#comments">{{!plural *post.commentscount "комментари" "й" "я" "ев" sep=" "}}</a></li>
			<!--li class="add-"><a href="#">Добавить?</a></li-->
		</ul>	
	{{?:}}
		<span class="comments-"></span>
		<ul class="comments-">
			<li>Комментариев пока нет</li>
			<!--li class="add-"><a href="#">Добавить?</a></li-->
		</ul>	
	{{/?}}
	<!--ul class="tags-">
		<li class="name-">Тематика:</li>
		<li><a href="#">R1.1</a></li>
	</ul-->
</div>
{{/:ld_item}}
